//
//  XJUserAccountViewModel.h
//  weiboOC
//
//  Created by 徐绩 on 16/4/21.
//  Copyright © 2016年 ayumi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "XJUserAccountModel.h"

@interface XJUserAccountViewModel : NSObject

@property (nonatomic,strong) XJUserAccountModel *accout;

+(instancetype)sharedViewModel;

-(BOOL)isLogin;

-(void)loadAccessToken:(NSString *)code isSuccess:(void(^)(BOOL isSuccess))finishedBlock;

-(void)loadUserInfo:(XJUserAccountModel *)account isSuccess:(void(^)(BOOL isSuccess))finishedBlock;

@end
